import request from "../../request/request.js";

export default {
    preCreateOrder: (data) => request.get("/api/order/preCreateOrder", data), //结算页面
    createOrder: (data) => request.post("/api/order/createOrder", data), //创建订单
    orderSimpleDetail: (data) => request.get("/api/order/orderSimpleDetail", data), // 支付页查询订单信息
    confirmPayment: (data) => request.post("/api/order/confirmPayment", data), // 确认支付
    orderList: (data) => request.get("/api/order/orderList", data), // 订单列表
    cancelOrder: (data) => request.post("/api/order/cancelOrder", data), //关闭订单
    takeDelivery: (data) => request.post("/api/order/takeDelivery", data), //立即收货
    deleteOrder: (data) => request.post("/api/order/deleteOrder", data), //删除订单
    orderDetail: (data) => request.get("/api/order/orderDetail", data), //订单详情
};
